@echo off
cls
echo Note: You must have Inno Setup 5 installed in C:\Program to run this script!
echo Make sure you have compiled Dogfight2008 in Release mode before pressing a key!
echo (press Ctrl+C to exit this script now!)
pause

cls
echo Removing old 'Dogfight2008' binary distribution folder...
del /Q Dogfight2008\*.* >nil
rd Dogfight2008 >nil

echo Creating new 'Dogfight2008' binary distribution folder...
mkdir Dogfight2008

echo Copying all bin\Release files...
copy /Y ..\src\Dogfight2008\bin\Release\*.* Dogfight2008  >nil

echo Removing unnecessary files...
del /Q Dogfight2008\*.vshost.*  >nil
del /Q Dogfight2008\*.pdb  >nil
del /Q Dogfight2008\*.xml >nil

echo Compiling 'Dogfight 2008 Setup.exe'...
set path=%path%;C:\Program\Inno Setup 5
start /wait /min compil32.exe /cc Dogfight2008.iss

rem echo Removing new 'Dogfight2008' binary distribution folder...
rem del /Q Dogfight2008\*.* >nil
rem rd Dogfight2008 >nil

del /Q nil
pause
